<?php
require_once "./db_config.php";
  $id=$_POST['id'];
  $sql="SELECT * FROM personalfiles_temp WHERE 工号='$id'";
   $result=mysqli_query($conn,$sql);
         if(mysqli_num_rows($result) > 0){
           while($row = mysqli_fetch_assoc($result)) {
             $arr[]=$row;
           }
           echo json_encode($arr,JSON_UNESCAPED_UNICODE);
         }else{
           echo "ERROR!";
         }
mysqli_close($conn);
?>
